﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Inventory.Master" AutoEventWireup="true" CodeBehind="Orders.aspx.cs" Inherits="InventryPro.Orders.Orders" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
 <div style="border: solid 1px black; width: 100%;">
        <table style="border: solid 1px black; width: 100%;">
            <tr>
                <td>
                    <asp:Label ID="lblCustomerID" runat="server" Text="CustomerID"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtCustomerID" runat="server"></asp:TextBox>
                </td>
                <td>
                    <asp:Label ID="lblOrderID" runat="server" Text="OrderID"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtOrderID" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lblEmployeeID" runat="server" Text="EmployeeID"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtEmployeeID" runat="server"></asp:TextBox>
                </td>
                <td>
                    <asp:Label ID="lblOrderDate" runat="server" Text="OrderDate"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtOrderDate" runat="server"></asp:TextBox>
                </td>
            </tr>
             <tr>
                <td>
                    <asp:Label ID="lblRequiredDate" runat="server" Text="RequiredDate"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtRequiredDate" runat="server"></asp:TextBox>
                </td>
                <td>
                    <asp:Label ID="lblShipName" runat="server" Text="ShipName"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtShipName" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lblShipAddress" runat="server" Text="ShipAddress"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtShipAddress" runat="server"></asp:TextBox>
                </td>
                <td>
                    <asp:Label ID="lblShipCity" runat="server" Text="ShipCity"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtShipCity" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lblShipRegion" runat="server" Text="ShipRegion"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtShipRegion" runat="server"></asp:TextBox>
                </td>
                <td>
                    <asp:Label ID="lblShipPostalCode" runat="server" Text="ShipPostalCode"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtShipPostalCode" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lblShipCountry" runat="server" Text="ShipCountry"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtShipCountry" runat="server"></asp:TextBox>
                </td>
                <td>
                    <asp:Label ID="lblShipPhone" runat="server" Text="ShipPhoneNo"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtShipPhoneNumber" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lblShipFax" runat="server" Text="ShipFax"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtShipFax" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                </td>
                <td>
                </td>
                <td>
                    <table>
                        <tr>
                            <td>
                                <asp:Button ID="btnSearch" runat="server" Text="Search" BorderStyle="Solid" OnClick="btnSearch_Click"
                                    ToolTip="Search Order" />
                                </div>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                            <td>
                                <asp:Button ID="btnClear" runat="server" Text="Clear" BorderStyle="Solid" OnClick="btnClear_click"
                                    ToolTip="Clear the values" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
    <asp:GridView ID="gridOrder" runat="server" AllowPaging="True" AlternatingRowStyle-BackColor="ActiveBorder"
            AutoGenerateColumns="False">
            <Columns>
             <asp:TemplateField>
            <ItemTemplate>
                <asp:CheckBox runat="server" ID="RowLevelCheckBox" />
            </ItemTemplate>
        </asp:TemplateField>
             <asp:BoundField  DataField="CustomerID" HeaderText="Id" 
         ReadOnly="True" />
         <asp:BoundField  DataField="OrderID" HeaderText="OrderID" 
         ReadOnly="True" />         
          <asp:BoundField  DataField="EmployeeID" HeaderText="EmployeeID" 
         ReadOnly="True" />
          <asp:BoundField  DataField="OrderDate" HeaderText="OrderDate" 
         ReadOnly="True" />
         <asp:BoundField  DataField="RequiredDate" HeaderText="RequiredDate" 
         ReadOnly="True" />
          <asp:BoundField  DataField="ShipName" HeaderText="ShipName" 
         ReadOnly="True" />
           <asp:BoundField  DataField="ShipAddress" HeaderText="ShipAddress" 
         ReadOnly="True" />
          <asp:BoundField  DataField="ShipCity" HeaderText="ShipCity" 
         ReadOnly="True" />          
            </Columns>
        </asp:GridView>
</asp:Content>
